package com.dinadi.yidi.ui.view;

import android.app.Activity;
import android.graphics.drawable.ColorDrawable;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.PopupWindow;

import com.dinadi.yidi.R;


/**
 * Created by mimizaijia on 2016/11/16.
 */

public class DatePopup extends PopupWindow {

    public DatePopup(Activity paramActivity, View view) {
        super(paramActivity);
        setContentView(view);
        //设置宽度
        setWidth(LinearLayout.LayoutParams.MATCH_PARENT);
        //设置高度
        setHeight(LinearLayout.LayoutParams.WRAP_CONTENT);
        //设置显示隐藏动画
        setAnimationStyle(R.style.AnimTools);

        //实例化一个ColorDrawable颜色为半透明
        ColorDrawable dw = new ColorDrawable(0x33000000);/*40%*/
        //设置SelectPicPopupWindow弹出窗体的背景
        this.setBackgroundDrawable(dw);
    }
}
